home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winword / wwclip.zip / WWCLIP.TXT < prev   
Text File  |  1993-07-29  |  7KB  |  145 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.          I apology because i forgot to include the Dot-file
  8.          This Zip-file contains a dll and some WinWord 2.0 macros  which
  9.          allow to  paste  anything  which is  copied  to  the  clipboard
  10.          directly to  your  winword  text and  to  directly  access  the
  11.          Clipboard.
  12.          You are free to use and copy this software
  13.          under the following condition:
  14.          1.) no  military  institution or  research
  15.              group  or  any   imployee  from   such
  16.              institution  or  group  may  use  this
  17.              software.
  18.              This software must also not  been used
  19.              in  institutions   which   collaborate
  20.              which military institution.
  21.          2.) The  copyright  remark in  the  macros
  22.              must not be changed or removed
  23.          3.) If  any  modifications are  made  this
  24.              must be  notified  in an  remark  line
  25.              inside the macros and also  below this
  26.              text.
  27.          4.) This file  should be  copied with  any
  28.              copy of the software
  29.          5.) the Author makes no warranties  in any
  30.              way about this software
  31.          6.) You  do  not blame  me  because of  my
  32.              English
  33.  
  34.          Enjoy it any comments are  welcome further
  35.          development will  only be  published if  i
  36.          get any comments.  The source code  of the
  37.          DLL is available upon request.
  38.  
  39.          Alberto Gobbi   gobbi@sg1501.chemie.uni-marburg.de
  40.                              137.248.151.1
  41.          BantzerStr. 9
  42.          D-35039 Marburg
  43.  
  44.  
  45.          Installation:
  46.               Copy albdll.dll to your windows\system directory
  47.               Copy Clipbrd.dot to your winword\ directory
  48.               You will need bwcc.dll in your Windows\system directory
  49.  
  50.  
  51.  
  52.          First try:
  53.               open a new document with clipbrd.dot as definition file
  54.               you will notice two new icons in the icon bar:
  55.                    Calculator
  56.                    Question mark
  57.              the question Mark Icon will first open a dialog window  and
  58.              ask for starting information (in the before/after editBox a
  59.              ^t may  be used  for a  tab). Then  it will  open a  little
  60.              window and wait until you  copy something to the  Clipboard
  61.              from any other application. if this  is done it will  paste
  62.              it automatically to the cursorpositon in the text and  wait
  63.              for the next Text copied to the Clipboard.
  64.              HOW TO EXIT THE  HIDE MODE: SWITCH  TO WINWORD BY  ALT-TAB;
  65.              ALT-ESC; OR CTRL-ESC THEN SELECT HIDE FROM THE SYSTEM MENU
  66.  
  67.  
  68.  
  69.  
  70.  
  71.              the Calculator  icon will  build the  sum off  any  numbers
  72.              which are  in the  clipboard (separated  bye  " ",  "+"  or
  73.              newlines, or in tablecells) and any numbers in the text you
  74.              actually highlighted. The Result  will be in the  Clipboard
  75.              and on the Status Bar
  76.  
  77.              If this works  try copying  the macros  to your  Normal.dot
  78.              file
  79.  
  80.  
  81.  
  82.          Details:
  83.               Winword macros:
  84.                  WaitClipboard is  the  macro  which is  called  by  the
  85.                  question Mark icon
  86.                  ClipPlusHighClip is the  macro which is  called by  the
  87.                  calculator-icon
  88.                  CliboardLib is a winbasic library with the function:
  89.                      ClipboardLib.Clipboard$ which  returns  the  actual
  90.                      contend of the Clipboard
  91.                      ClipboardLib.Setclipboard(s$) puts  the  unformated
  92.                      text s$ to the Clipboard
  93.                  ArithLib is a  winbasic library with the function:
  94.                      SumString$(s$) which  will convert  numbers in  the
  95.                      string s$  separated by  " ","+"  or newlines  into
  96.                      numbers separated by "+"
  97.                  MakrosLibis a winbasic library with the function:
  98.                      Ersetze$(q$,e$,d$) which will replace any occurence
  99.                      of e$ in q$ by d$
  100.              DLL-Functions
  101.                  WaitClip Lib "albdll.dll"  (hwWW As Integer,  Precision
  102.                  As Integer,  Hide As  Integer, SDFocus  as Integer)  As
  103.                  Integer
  104.                      will open the little  window then wait until  there
  105.                      is something  in  the  Clipboard round  it  if  you
  106.                      choose so  and return  to WinWord.  Any  sequential
  107.                      call to that function in one Macro will  retain its
  108.                      position and its roundingprecission and the  hidden
  109.                      status.
  110.                      Parameter:
  111.                          hwWW the Handle of  the WinwordWindow (look  at
  112.                          macros)
  113.                          Precision the ComboboxItem  (0=Pause) only  for
  114.                          the first  Call  in  one macro,  give  negative
  115.                          values to force also at any further call.
  116.                          Hide 1=Hide 0=Do not  hide, only for the  first
  117.                          call in one Macro
  118.                          SDFocus in winword  0 if the  focus is not  set
  119.                          back  to  the  foreign  application  after  you
  120.                          copied something to the clipboard try using 1
  121.                      Return values:
  122.                          -257 error in OpenClipboard()
  123.                          -1 - -12 User Selected Cancel/close  and -1-ret
  124.                          = ComboboxItem
  125.                          0-11 Normal exit  (after Clipboard was  filled)
  126.                          ret= ComboBoxItem
  127.                      HOW TO EXIT  THE HIDE  MODE: SWITCH  TO WINWORD  BY
  128.                      ALT-TAB; ALT-ESC; OR CTRL-ESC THEN SELECT HIDE FROM
  129.                      THE SYSTEM MENU
  130.  
  131.  
  132.  
  133.  
  134.  
  135.                  PutClipboard Lib "albdll.dll"(Str As String) As Integer
  136.                      Will put the  text in  str into  the Clipboard  and
  137.                      return != 0 if OK.
  138.                  RoundString Lib  "albdll.dll"(Str  As String,  Prec  As
  139.                  Integer) As String
  140.                      Will round the  string str  to give  a number  with
  141.                      prec digits  after the  "."  and give  the  rounded
  142.                      string back.  the string  must  have at  least  the
  143.                      number of characters  which the  result will  have.
  144.                      Any nonNumerical character will be erased.
  145.              Look at the macros for examples on ho3 to use the functions